#define LOG_TAG "CONNECTIVITY_HAL.SERVICE"

#include <hidl/HidlTransportSupport.h>
#include "Connectivity.h"
#include <log/log.h>

using namespace android;
using namespace vendor::ecarx::xma::connectivity::V1_0::implementation;

int main(int /* argc */, char ** /* argv */)
{
    android::hardware::configureRpcThreadpool(4, true);
    sp<Connectivity> conn = new Connectivity();
    status_t status = conn->registerAsService();

    if (status != OK)
    {
        ALOGE("Unable to register connectivity service (%d)", status);
        return 1;
    }

    android::hardware::joinRpcThreadpool();
    return 1; // joinRpcThreadpool shouldn't exit
}